package com.food.dao.service;

import java.util.List;

import com.food.dao.ApplicationDAOJdbc;
import com.food.dao.in.ApplicationDAO;
import com.food.model.Application;

public class ApplicationService {
	ApplicationDAO dao = new ApplicationDAOJdbc();

	public void insertApplication(Application bean){
		dao.insertApplication(bean);
	}

	public void deleteApplication(Application bean){
		dao.deleteApplication(bean.getApid());
	}

	public List<Application> findAllApplication(){
		return dao.findAllApplication();
	}

	public List<Application> findApplicationByMb(Application bean){
		return dao.findApplicationByMb(bean.getMbid());
	}

	public List<Application> findApplicationByCourse(Application bean){
		return dao.findApplicationByCourse(bean.getCid());
	}
}
